import { SessionUtils } from '@/utils'
export const product={
    namespaced:true,
    state:{
        rowData: SessionUtils.get('form')||{},
        pageTitle: SessionUtils.get('title') || '添加'
    },
    actions:{},
    mutations:{
        changeRowData(state,payload){
            state.rowData=payload;
            SessionUtils.set('form', state.rowData)
        },
        changeTitle(state,payload){
            state.pageTitle=payload;
            SessionUtils.set('title', state.pageTitle)
        }
    }
}